﻿if exists (select * from sysobjects where name like N'%sp_DMHinhThucThanhToan_Insert%')
	drop proc sp_DMHinhThucThanhToan_Insert
go
create proc sp_DMHinhThucThanhToan_Insert
	@MaHinhThucThanhToan int = null,
	@TenHinhThucThanhToan nvarchar(50) = null,
	@IsUse bit = null,
	@CreateBy int = null,
	@ModifiedBy int = null,
	@ModifiedOn datetime = null
as
begin
	if not exists (select * from DMHinhThucThanhToan where MaHinhThucThanhToan = @MaHinhThucThanhToan)
	begin
		insert into DMHinhThucThanhToan (TenHinhThucThanhToan, IsUse, CreateBy)
		values (@TenHinhThucThanhToan, @IsUse, @CreateBy)
	end
end